//
//  MessageCell.h
//  Gabber
//
//  Created by 陆惠国 on 11-10-11.
//  Copyright (c) 2011年 恒生聚源. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Message;


@interface MessageCell : UITableViewCell
{
    UIImageView *_avatarView;
    //TTStyledTextLabel* _messageLabel;
    TTLabel *_badgeLabel;
    
    UILabel *_nameLabel;
//    UILabel *_contentLabel;
    UILabel *_timestampLabel;

    Message *_message;
    NSString *_badgeValue;
    
}


@property (nonatomic, readonly, retain) UIImageView* avatarView;
//@property (nonatomic, readonly, retain) TTStyledTextLabel* messageLabel;
@property (nonatomic, readonly, retain) TTLabel*  badgeLabel;

@property (nonatomic, readonly, retain) UILabel* nameLabel;
//@property (nonatomic, readonly, retain) UILabel* contentLabel;
@property (nonatomic, readonly, retain) UILabel* timestampLabel;

@property (nonatomic, retain) Message* message;
@property (nonatomic, copy) NSString* badgeValue;

- (NSString*)formatMessageTimestamp:(NSDate *) timestamp;
- (void)updateBadge;

@end

